<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><script>(()=>{const e=navigator.serviceWorker;e?e.register("/sw.js").then((async e=>{console.log("SWPP 注册成功");try{await e.periodicSync.register("update",{minInterval:864e5})}catch(e){console.log("Periodic Sync 注册失败",e)}})).catch((e=>console.error("SWPP 注册失败",e))):console.warn("当前浏览器不支持 SW")})()</script><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover"><title>静态网站优化方案 | LiuShen's Blog</title><meta name="author" content="LiuShen"><meta name="copyright" content="LiuShen"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="robots" content="index, follow"><meta name="description" content="最近加了不少好友的友链，认识了许多网站上的朋友。由于众所周知的原因，有些国外服务在国内访问较慢，部分朋友的站点因此影响了国内用户的访问体验。为了帮助大家提高访问速度，我写了这篇文章，简单介绍了一些我所了解的网站加速方案，希望能够帮助更多朋友改善速度问题。"><meta property="og:type" content="article"><meta property="og:title" content="静态网站优化方案"><meta property="og:url" content="https://blog.liushen.fun/posts/260f4f9a/"><meta property="og:site_name" content="LiuShen's Blog"><meta property="og:description" content="最近加了不少好友的友链，认识了许多网站上的朋友。由于众所周知的原因，有些国外服务在国内访问较慢，部分朋友的站点因此影响了国内用户的访问体验。为了帮助大家提高访问速度，我写了这篇文章，简单介绍了一些我所了解的网站加速方案，希望能够帮助更多朋友改善速度问题。"><meta property="og:locale" content="zh_CN"><meta property="og:image" content="https://p.liiiu.cn/i/2025/02/26/67becab466c8a.webp"><meta property="article:published_time" content="2025-02-27T02:11:00.000Z"><meta property="article:modified_time" content="2025-02-27T02:12:00.000Z"><meta property="article:author" content="LiuShen"><meta property="article:tag" content="博客"><meta property="article:tag" content="网速优化"><meta property="article:tag" content="静态网站"><meta name="twitter:card" content="summary"><meta name="twitter:image" content="https://p.liiiu.cn/i/2025/02/26/67becab466c8a.webp"><link rel="shortcut icon" href="/favicon.ico"><link rel="canonical" href="https://blog.liushen.fun/posts/260f4f9a/"><link rel="preconnect" href="https://jsd.liiiu.cn"><meta name="baidu-site-verification" content="codeva-i2bF9bXDJs"><meta name="sogou_site_verification" content="1rIjtK6RhE"><meta name="360-site-verification" content="b9a9f96ae38a1932a326f8ba255cc74b"><meta name="msvalidate.01" content="F7C246820EB04DD140494C98F93A97C7"><meta name="google-site-verification" content="VH3ZE6m42MZDqpTY2tD-XoxDt9iUj2HoiC3W2neB7F4"><link rel="manifest" href="/manifest.json"><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/config/img/pwa/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/config/img/pwa/favicon-16x16.png"><link rel="mask-icon" href="/config/img/pwa/favicon-mask.svg" color="#5bbad5"><link rel="stylesheet" href="/css/index.css?v=5.0.0"><link rel="stylesheet" href="/css/custom.css?v=5.0.0"><link rel="stylesheet" href="https://jsd.liiiu.cn/npm/@fortawesome/fontawesome-free@6.7.2/css/all.min.css"><link rel="stylesheet" href="https://jsd.liiiu.cn/npm/@fancyapps/ui@5.0.36/dist/fancybox/fancybox.min.css" media="print" onload='this.media="all"'><script>(()=>{const e={set:(e,t,o)=>{if(!o)return;const n=Date.now()+864e5*o;localStorage.setItem(e,JSON.stringify({value:t,expiry:n}))},get:e=>{const t=localStorage.getItem(e);if(!t)return;const{value:o,expiry:n}=JSON.parse(t);if(!(Date.now()>n))return o;localStorage.removeItem(e)}};window.btf={saveToLocal:e,getScript:(e,t={})=>new Promise(((o,n)=>{const a=document.createElement("script");a.src=e,a.async=!0,Object.entries(t).forEach((([e,t])=>a.setAttribute(e,t))),a.onload=a.onreadystatechange=()=>{a.readyState&&!/loaded|complete/.test(a.readyState)||o()},a.onerror=n,document.head.appendChild(a)})),getCSS:(e,t)=>new Promise(((o,n)=>{const a=document.createElement("link");a.rel="stylesheet",a.href=e,t&&(a.id=t),a.onload=a.onreadystatechange=()=>{a.readyState&&!/loaded|complete/.test(a.readyState)||o()},a.onerror=n,document.head.appendChild(a)})),addGlobalFn:(e,t,o=!1,n=window)=>{const a=n.globalFn||{};a[e]=a[e]||{},o&&a[e][o]||(a[e][o||Object.keys(a[e]).length]=t,n.globalFn=a)}};const t=()=>{document.documentElement.setAttribute("data-theme","dark"),null!==document.querySelector('meta[name="theme-color"]')&&document.querySelector('meta[name="theme-color"]').setAttribute("content","#0d0d0d")},o=()=>{document.documentElement.setAttribute("data-theme","light"),null!==document.querySelector('meta[name="theme-color"]')&&document.querySelector('meta[name="theme-color"]').setAttribute("content","#ffffff")};btf.activateDarkMode=t,btf.activateLightMode=o;const n=e.get("theme"),a=(new Date).getHours();void 0===n?a<=6||a>=18?t():o():"light"===n?o():t();const r=e.get("aside-status");void 0!==r&&document.documentElement.classList.toggle("hide-aside","hide"===r);/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)&&document.documentElement.classList.add("apple")})()</script><script>const GLOBAL_CONFIG={root:"/",algolia:{appId:"7IX3UBC6JW",apiKey:"4ac2846352e499675081f1277fb961c1",indexName:"My Blog",hitsPerPage:6,languages:{input_placeholder:"搜索全站文章",hits_empty:"未找到符合您查询的内容：${query}",hits_stats:"找到 ${hits} 条结果，耗时 ${time} 毫秒"}},localSearch:void 0,translate:{defaultEncoding:2,translateDelay:0,msgToTraditionalChinese:"繁",msgToSimplifiedChinese:"簡"},noticeOutdate:{limitDay:365,position:"top",messagePrev:"本篇文章从发布到现在已经隔了",messageNext:"天了，里面的内容可能过期了，你要自己甄别一下哟👉👈"},highlight:{plugin:"highlight.js",highlightCopy:!0,highlightLang:!0,highlightHeightLimit:400,highlightFullpage:!1,highlightMacStyle:!0},copy:{success:"😋复制啦！请注意版权信息呀！",error:"😪呜呜，复制失败了！",noSupport:"🤐浏览器不支持呢，你用的啥玩意？"},relativeDate:{homepage:!1,post:!1},runtime:"天",dateSuffix:{just:"刚刚",min:"分钟前",hour:"小时前",day:"天前",month:"个月前"},copyright:{limitCount:1e3,languages:{author:"作者: LiuShen",link:"链接: ",source:"来源: LiuShen's Blog",info:"著作权归作者所有。商业转载请联系作者获得授权，非商业转载请注明出处。"}},lightbox:"fancybox",Snackbar:{chs_to_cht:"已切换为繁体中文",cht_to_chs:"已切换为简体中文",day_to_night:"已切换为深色模式",night_to_day:"已切换为浅色模式",bgLight:"rgba(255, 255, 255, 0.509)",bgDark:"rgba(48, 48, 48, 0.509)",position:"top-right"},infinitegrid:{js:"https://jsd.liiiu.cn/npm/@egjs/infinitegrid@4.12.0/dist/infinitegrid.min.js",buttonText:"加载更多"},isPhotoFigcaption:!0,islazyload:!0,isAnchor:!1,percent:{toc:!0,rightside:!1},autoDarkmode:!1}</script><script id="config-diff">var GLOBAL_CONFIG_SITE={title:"静态网站优化方案",isPost:!0,isHome:!1,isHighlightShrink:void 0,isToc:!0,postUpdate:"2025-02-27 10:12:00"}</script><link rel="stylesheet" href="https://jsd.liiiu.cn/gh/willow-god/Sharding-fonts/Yozai-Medium/result.min.css"><link rel="stylesheet" href="/config/memos/memos.css"><script defer src="/sw-dom.js"></script><link rel="stylesheet" href="https://jsd.liiiu.cn/npm/swiper@11.1.14/swiper-bundle.min.css" media="print" onload='this.media="all"'><link rel="stylesheet" href="/config/swiper/swiperstyle.css" media="print" onload='this.media="all"'><meta name="generator" content="Hexo 7.3.0"><link rel="alternate" href="/atom.xml" title="LiuShen's Blog" type="application/atom+xml"></head><body><div class="float-box right top"></div><div id="loading-box"><div class="loading-left-bg"></div><div class="loading-right-bg"></div><img class="load-image" src="" data-lazy-src="/config/img/preloader.gif" alt=""></div><script async>(()=>{const e=document.getElementById("loading-box"),d=document.body,t=()=>{d.style.overflow="",e.classList.add("loaded")},n=()=>{d.style.overflow="hidden",e.classList.remove("loaded")};n();let o=!1;window.addEventListener("load",(()=>{o||(t(),o=!0)})),setTimeout((()=>{o||(t(),o=!0)}),5e3),window.addEventListener("load",(()=>{t()})),setTimeout((function(){t()}),3e3),document.getElementById("loading-box").addEventListener("click",(()=>{t()})),document.addEventListener("pjax:send",(()=>{n()})),document.addEventListener("pjax:complete",(()=>{t()}))})()</script><div id="web_bg"></div><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="add-menu-container"><div id="travellings"><a class="site-page" href="https://www.travellings.cn/go.html" title="友链接力-随机开往" target="_blank" rel="noopener nofollow"><i class="fa-solid fa-bus fa-fw"></i></a></div><div id="ten-years"><a class="site-page" href="https://foreverblog.cn/go.html" title="友链接力-十年之约" target="_blank" rel="noopener nofollow"><i class="fa-brands fa-nfc-symbol fa-fw"></i></a></div></div><div class="is-center" id="sidebar-avatar"><div class="avatar-img is-center"><img class="mood-icon" src="" data-lazy-src="https://p.liiiu.cn/i/2025/03/14/67d301461a24a.webp" alt="🤤" onerror='this.onerror=null,this.src="/img/friend_404.gif"'><img src="" data-lazy-src="https://p.liiiu.cn/i/2025/03/13/67d2fc82d329c.webp" onerror='this.onerror=null,this.src="/img/friend_404.gif"' alt="avatar"></div><div class="author-info__name">LiuShen</div></div><div class="site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">72</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">98</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">3</div></a></div><a class="button--animated" id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/willow-god"><i class="fab fa-github"></i><span>Follow Me 🛫</span></a><div class="menus_items visible"><div class="menus_item"><span class="site-page group hide"><i class="fa-fw fas fa-home"></i> <span>导航</span><i class="fas fa-chevron-down"></i></span><ul class="menus_item_child"><li><a class="site-page child" target="_blank" rel="noopener" href="https://www.liushen.fun/"><i class="fa-fw fa-solid fa-house-flag"></i> <span>个人主页</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://xc.liushen.fun/"><i class="fa-fw fa fa-camera-retro"></i> <span>个人相册</span></a></li></ul></div><div class="menus_item"><span class="site-page group hide"><i class="fa-fw fa fa-graduation-cap"></i> <span>整理</span><i class="fas fa-chevron-down"></i></span><ul class="menus_item_child"><li><a class="site-page child" href="/archives/"><i class="fa-fw fas fa-archive"></i> <span>时光卷轴</span></a></li><li><a class="site-page child" href="/tags/"><i class="fa-fw fas fa-tags"></i> <span>文章标签</span></a></li><li><a class="site-page child" href="/categories/"><i class="fa-fw fas fa-folder-open"></i> <span>文章分类</span></a></li><li><a class="site-page child" href="/charts/"><i class="fa-fw fa-solid fa-chart-pie"></i> <span>文章通览</span></a></li></ul></div><div class="menus_item"><span class="site-page group hide"><i class="fa-fw fa-solid fa-user-group"></i> <span>友人</span><i class="fas fa-chevron-down"></i></span><ul class="menus_item_child"><li><a class="site-page child" href="/link/"><i class="fa-fw fas fa-link"></i> <span>友链展示</span></a></li><li><a class="site-page child" href="/addlink/"><i class="fa-fw fa fa-at"></i> <span>友链申请</span></a></li><li><a class="site-page child" href="/fcircle/"><i class="fa-fw fa-solid fa-circle-nodes"></i> <span>朋友动态</span></a></li></ul></div><div class="menus_item"><span class="site-page group hide"><i class="fa-fw fa fa-paper-plane"></i> <span>留言</span><i class="fas fa-chevron-down"></i></span><ul class="menus_item_child"><li><a class="site-page child" href="/comment/"><i class="fa-fw fa-solid fa-chalkboard"></i> <span>留言白板</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://mm.liushen.fun/"><i class="fa-fw fa-solid fa-pen-nib"></i> <span>提笔摘星</span></a></li></ul></div><div class="menus_item"><span class="site-page group hide"><i class="fa-fw fa-solid fa-stethoscope"></i> <span>分享</span><i class="fas fa-chevron-down"></i></span><ul class="menus_item_child"><li><a class="site-page child" target="_blank" rel="noopener" href="https://gist.liushen.fun/"><i class="fa-fw fa-solid fa-code"></i> <span>代码片段</span></a></li><li><a class="site-page child" href="/subscribe/"><i class="fa-fw fa-solid fa-rss"></i> <span>订阅本站</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://pan.liushen.fun/"><i class="fa-fw fa-solid fa-laptop-file"></i> <span>清羽云盘</span></a></li></ul></div><div class="menus_item"><span class="site-page group hide"><i class="fa-fw fa fa-list"></i> <span>关于</span><i class="fas fa-chevron-down"></i></span><ul class="menus_item_child"><li><a class="site-page child" href="/about/"><i class="fa-fw fa fa-address-card"></i> <span>站长资料</span></a></li><li><a class="site-page child" href="/shuoshuo/"><i class="fa-fw fa fa-commenting"></i> <span>日常说说</span></a></li><li><a class="site-page child" href="/devices/"><i class="fa-fw fa-solid fa-tachograph-digital"></i> <span>我的设备</span></a></li></ul></div></div></div></div><div class="post" id="body-wrap"><header class="post-bg fixed" id="page-header" style="background-image:url(https://p.liiiu.cn/i/2025/02/26/67becab466c8a.webp)"><nav id="nav"><div class="more-app-btn"><i class="fa-solid fa-fingerprint fa-fw"></i><div class="more-app-list-groups"><div class="more-app-list-groups-container"><div class="more-app-list-group"><div class="more-app-list-title">🦄常用网站</div><div class="more-app-list"><a class="more-app-list-item" href="https://www.liushen.fun/" rel="nofollow noopener" target="_blank"><i class="more-app-item-icon fa-solid fa-house"></i><span class="more-app-item-text">个人主页</span></a><a class="more-app-list-item" href="https://blog.liushen.fun/" rel="nofollow noopener" target="_blank"><i class="more-app-item-icon fa-solid fa-blog"></i><span class="more-app-item-text">个人博客</span></a><a class="more-app-list-item" href="https://xc.liushen.fun/" rel="nofollow noopener" target="_blank"><i class="more-app-item-icon fa-solid fa-image"></i><span class="more-app-item-text">个人相册</span></a><a class="more-app-list-item" href="https://github.com/willow-god" rel="nofollow noopener" target="_blank"><i class="more-app-item-icon fa-brands fa-github"></i><span class="more-app-item-text">Github</span></a></div></div><div class="more-app-list-group"><div class="more-app-list-title">😎周边站点</div><div class="more-app-list"><a class="more-app-list-item" href="https://gist.liushen.fun/" rel="nofollow noopener" target="_blank"><i class="more-app-item-icon fa-solid fa-code"></i><span class="more-app-item-text">代码片段</span></a><a class="more-app-list-item" href="https://mm.liushen.fun/" rel="nofollow noopener" target="_blank"><i class="more-app-item-icon fa-solid fa-pen-nib"></i><span class="more-app-item-text">提笔摘星</span></a><a class="more-app-list-item" href="https://pan.liushen.fun/" rel="nofollow noopener" target="_blank"><i class="more-app-item-icon fa-solid fa-cloud"></i><span class="more-app-item-text">清羽云盘</span></a><a class="more-app-list-item" href="https://um.liushen.fun/" rel="nofollow noopener" target="_blank"><i class="more-app-item-icon fa-solid fa-people-group"></i><span class="more-app-item-text">访客统计</span></a><a class="more-app-list-item" href="https://img.liiiu.cn/" rel="nofollow noopener" target="_blank"><i class="more-app-item-icon fa-solid fa-images"></i><span class="more-app-item-text">清羽图床</span></a><a class="more-app-list-item" href="https://chat.liushen.fun/" rel="nofollow noopener" target="_blank"><i class="more-app-item-icon fa-solid fa-robot"></i><span class="more-app-item-text">清羽AI</span></a><a class="more-app-list-item" href="https://bsz.liiiu.cn/" rel="nofollow noopener" target="_blank"><i class="more-app-item-icon fa-solid fa-chart-pie"></i><span class="more-app-item-text">不蒜计数</span></a><a class="more-app-list-item" href="https://status.liushen.fun/" rel="nofollow noopener" target="_blank"><i class="more-app-item-icon fa-solid fa-server"></i><span class="more-app-item-text">服务检测</span></a></div></div><div class="more-app-list-group"><div class="more-app-list-title">🚁实用工具</div><div class="more-app-list"><a class="more-app-list-item" href="https://tmail.qyliu.top/" rel="nofollow noopener" target="_blank"><i class="more-app-item-icon fa-solid fa-envelope"></i><span class="more-app-item-text">临时邮箱</span></a><a class="more-app-list-item" href="https://hot.liushen.fun/" rel="nofollow noopener" target="_blank"><i class="more-app-item-icon fa-solid fa-fire"></i><span class="more-app-item-text">每日热榜</span></a><a class="more-app-list-item" href="https://cover.qyliu.top/" rel="nofollow noopener" target="_blank"><i class="more-app-item-icon fa-solid fa-eye"></i><span class="more-app-item-text">封面设计</span></a><a class="more-app-list-item" href="https://mini-cover.qyliu.top/" rel="nofollow noopener" target="_blank"><i class="more-app-item-icon fa-solid fa-image"></i><span class="more-app-item-text">迷你封面</span></a><a class="more-app-list-item" href="https://icon.qyliu.top/" rel="nofollow noopener" target="_blank"><i class="more-app-item-icon fa-solid fa-icons"></i><span class="more-app-item-text">万能图标</span></a><a class="more-app-list-item" href="https://draw.qyliu.top/" rel="nofollow noopener" target="_blank"><i class="more-app-item-icon fa-solid fa-paintbrush"></i><span class="more-app-item-text">灵感白板</span></a><a class="more-app-list-item" href="https://mindmap.qyliu.top/" rel="nofollow noopener" target="_blank"><i class="more-app-item-icon fa-solid fa-network-wired"></i><span class="more-app-item-text">思维导图</span></a><a class="more-app-list-item" href="https://share.liushen.fun/#/" rel="nofollow noopener" target="_blank"><i class="more-app-item-icon fa-solid fa-share-nodes"></i><span class="more-app-item-text">内容中转</span></a></div></div></div></div></div><span id="blog-info"><a class="nav-site-title" href="/" title="LiuShen's Blog"><span class="site-name">LiuShen</span></a></span><div id="menus"></div><div class="menus_items visible"><div class="menus_item"><span class="site-page group hide"><i class="fa-fw fas fa-home"></i> <span>导航</span><i class="fas fa-chevron-down"></i></span><ul class="menus_item_child"><li><a class="site-page child" target="_blank" rel="noopener" href="https://www.liushen.fun/"><i class="fa-fw fa-solid fa-house-flag"></i> <span>个人主页</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://xc.liushen.fun/"><i class="fa-fw fa fa-camera-retro"></i> <span>个人相册</span></a></li></ul></div><div class="menus_item"><span class="site-page group hide"><i class="fa-fw fa fa-graduation-cap"></i> <span>整理</span><i class="fas fa-chevron-down"></i></span><ul class="menus_item_child"><li><a class="site-page child" href="/archives/"><i class="fa-fw fas fa-archive"></i> <span>时光卷轴</span></a></li><li><a class="site-page child" href="/tags/"><i class="fa-fw fas fa-tags"></i> <span>文章标签</span></a></li><li><a class="site-page child" href="/categories/"><i class="fa-fw fas fa-folder-open"></i> <span>文章分类</span></a></li><li><a class="site-page child" href="/charts/"><i class="fa-fw fa-solid fa-chart-pie"></i> <span>文章通览</span></a></li></ul></div><div class="menus_item"><span class="site-page group hide"><i class="fa-fw fa-solid fa-user-group"></i> <span>友人</span><i class="fas fa-chevron-down"></i></span><ul class="menus_item_child"><li><a class="site-page child" href="/link/"><i class="fa-fw fas fa-link"></i> <span>友链展示</span></a></li><li><a class="site-page child" href="/addlink/"><i class="fa-fw fa fa-at"></i> <span>友链申请</span></a></li><li><a class="site-page child" href="/fcircle/"><i class="fa-fw fa-solid fa-circle-nodes"></i> <span>朋友动态</span></a></li></ul></div><div class="menus_item"><span class="site-page group hide"><i class="fa-fw fa fa-paper-plane"></i> <span>留言</span><i class="fas fa-chevron-down"></i></span><ul class="menus_item_child"><li><a class="site-page child" href="/comment/"><i class="fa-fw fa-solid fa-chalkboard"></i> <span>留言白板</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://mm.liushen.fun/"><i class="fa-fw fa-solid fa-pen-nib"></i> <span>提笔摘星</span></a></li></ul></div><div class="menus_item"><span class="site-page group hide"><i class="fa-fw fa-solid fa-stethoscope"></i> <span>分享</span><i class="fas fa-chevron-down"></i></span><ul class="menus_item_child"><li><a class="site-page child" target="_blank" rel="noopener" href="https://gist.liushen.fun/"><i class="fa-fw fa-solid fa-code"></i> <span>代码片段</span></a></li><li><a class="site-page child" href="/subscribe/"><i class="fa-fw fa-solid fa-rss"></i> <span>订阅本站</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://pan.liushen.fun/"><i class="fa-fw fa-solid fa-laptop-file"></i> <span>清羽云盘</span></a></li></ul></div><div class="menus_item"><span class="site-page group hide"><i class="fa-fw fa fa-list"></i> <span>关于</span><i class="fas fa-chevron-down"></i></span><ul class="menus_item_child"><li><a class="site-page child" href="/about/"><i class="fa-fw fa fa-address-card"></i> <span>站长资料</span></a></li><li><a class="site-page child" href="/shuoshuo/"><i class="fa-fw fa fa-commenting"></i> <span>日常说说</span></a></li><li><a class="site-page child" href="/devices/"><i class="fa-fw fa-solid fa-tachograph-digital"></i> <span>我的设备</span></a></li></ul></div></div><center id="name-container"><a id="page-name" href="javascript:btf.scrollToDest(0, 500)">PAGE_NAME</a></center><div id="nav-right"><div id="travellings"><a class="site-page" href="https://www.travellings.cn/go.html" title="友链接力-随机开往" target="_blank" rel="noopener nofollow"><i class="fa-solid fa-bus fa-fw"></i></a></div><div id="ten-years"><a class="site-page" href="https://foreverblog.cn/go.html" title="友链接力-十年之约" target="_blank" rel="noopener nofollow"><i class="fa-brands fa-nfc-symbol fa-fw"></i></a></div><div id="random"><a class="site-page" href="javascript:randomPost()" title="随机前往一个文章"><i class="fa-solid fa-shuffle fa-fw"></i></a></div><div id="search-button"><span class="site-page social-icon search"><i class="fas fa-search fa-fw"></i></span></div><div id="toggle-menu"><span class="site-page" href="javascript:void(0);" title="展开菜单"><i class="fas fa-indent fa-fw"></i></span></div></div></nav><div id="post-info"><h1 class="post-title">静态网站优化方案</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2025-02-27T02:11:00.000Z" title="发表于 2025-02-27 10:11:00">2025-02-27</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2025-02-27T02:12:00.000Z" title="更新于 2025-02-27 10:12:00">2025-02-27</time></span><span class="post-meta-categories"><span class="post-meta-separator">|</span><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/website/">博客管理</a></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-wordcount"><i class="far fa-file-word fa-fw post-meta-icon"></i><span class="post-meta-label">总字数:</span><span class="word-count">5.9k</span><span class="post-meta-separator">|</span><i class="far fa-clock fa-fw post-meta-icon"></i><span class="post-meta-label">阅读时长:</span><span>17分钟</span></span><span class="post-meta-separator">|</span><span class="post-meta-pv-cv" data-flag-title=""><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">浏览量:</span><span id="busuanzi_page_pv"><i class="fa-solid fa-spinner fa-spin"></i></span></span><span class="post-meta-separator">|</span><span class="post-meta-commentcount"><i class="far fa-comments fa-fw post-meta-icon"></i><span class="post-meta-label">评论数:</span><a href="/posts/260f4f9a/#post-comment"><span id="ArtalkCount"><i class="fa-solid fa-spinner fa-spin"></i></span></a></span></div></div></div><section class="main-hero-waves-area waves-area"><svg class="waves-svg" xmlns="http://www.w3.org/2000/svg" xlink="http://www.w3.org/1999/xlink" viewBox="0 24 150 28" preserveAspectRatio="none" shape-rendering="auto"><defs><path id="gentle-wave" d="M-160 44c30 0 58-18 88-18s58 18 88 18 58-18 88-18 58 18 88 18v44h-352Z"></path></defs><g class="parallax"><use href="#gentle-wave" x="48" y="0"></use><use href="#gentle-wave" x="48" y="3"></use><use href="#gentle-wave" x="48" y="5"></use><use href="#gentle-wave" x="48" y="7"></use></g></svg></section></header><main class="layout" id="content-inner"><div id="post"><article class="post-content" id="article-container"><div class="ai-summary"><div class="ai-head"><div class="ai-head-left"><div class="ai-circle ai-circle-1"></div><div class="ai-circle ai-circle-2"></div><div class="ai-circle ai-circle-3"></div></div><div class="ai-head-right"><a class="ai-about-ai" href="/posts/40702a0d/">关于AI</a></div></div><div class="ai-explanation" style="display:block" data-summary="这里是清羽AI，这篇文章主要介绍了静态网站优化方案，重点讲解了域名选择、DNS解析、内容分发CDN、JSCDN以及Service Worker和国内外分流等方面的内容。文章首先强调了域名的重要性，建议使用自购域名或可靠的免费域名，并详细分析了免费和付费域名的优缺点。接着，文章介绍了DNS解析的两种方式A解析和CNAME解析，以及如何通过CNAME解析实现CDN加速。内容分发CDN部分详细解释了CDN的工作原理和选择CDN服务商的建议，特别提到了Vercel、Cloudflare和Netlify等常用CDN服务。JSCDN部分则针对GitHub、npm和WordPress上的静态文件加速进行了说明，推荐了Jsdelivr等国内高速CDN服务。Service Worker部分介绍了其原理和潜在问题，建议谨慎使用。最后，文章探讨了国内外分流的重要性，建议使用Cloudflare等CDN服务进行分流，以提升国内外用户的访问速度。通过这些优化方案，可以有效提升网站访问速度，改善用户体验，并有助于提升搜索引擎排名。">清羽AI正在绞尽脑汁想思路ING···</div><div class="ai-title"><div class="ai-title-left"><i class="fa-brands fa-slack"></i><div class="ai-title-text">清羽のAI摘要</div></div><div class="ai-tag" id="ai-tag">GLM-4-Flash</div></div></div><h2 id="碎碎念"><a href="#碎碎念" class="headerlink" title="碎碎念"></a>碎碎念</h2><p>其实很早之前就想写这篇文章了，因为我注意到不少朋友并不太理解什么是内容分发网络<code>CDN</code>，以及类似于 <code>Jsdelivr</code> 这样的<code>CDN</code>服务。大家在搭建自己网站的时候，可能会忽视这一点，导致站点虽然在某些地区运行得还不错，但在其他位置的访问速度却很不理想。毕竟，大家都知道，一些国外的服务访问在国内受限，如果不做优化，加载会很慢，甚至会出现访问不了的情况。遗憾的是，网上关于这个话题的讲解并不集中，很多信息都比较零散。</p><p>这篇文章就想从零开始，聊聊我自己接触到的一些网站加速方案，顺便解答一下大家可能存在的一些疑问。虽然我自己也不是这方面的专家，但希望能通过这篇文章给大家提供一些思路，帮助那些正在面临访问速度困扰的朋友们找到合适的解决方案。毕竟，网站速度提升不仅能给用户带来更好的体验，也能帮助站点在搜索引擎中获得更好的排名，何乐而不为呢？</p><h2 id="优化内容"><a href="#优化内容" class="headerlink" title="优化内容"></a>优化内容</h2><h3 id="域名"><a href="#域名" class="headerlink" title="域名"></a>域名</h3><p>域名是一个网站的门面，如果有能力的话，我还是建议自己购买一个域名，哪怕是一个较偏门的域名，只需要你拥有所有的<code>dns</code>解析权限，后续换域名只需要永久重定向即可，完全不影响访问，也不会影响<code>SEO</code>（最直观的就是搜索引擎中的排名）。</p><div class="note note-info"><div class="note-header"><i class="note-icon fa-regular fa-circle-check"></i> <span class="note-title">DNS解析</span></div><div class="note-content"><p>我们访问网站的步骤是，首先在网址栏输入域名，通过<code>dns</code>解析中的记录，会将域名转化为<code>IP</code>，通过<code>ip</code>即可找到服务器，由于我们发送的网站请中是有来源字段的，也就是我们通过哪个域名访问到的这个服务器，在服务器中，就会通过<code>nginx</code>分流，使其找到服务器上设置的域名，这样就可以返回正确的数据了。</p><p>最常用的解析分为两类：</p><ul><li>A解析：一个域名对应一个IP；</li><li>CNAME解析：一个域名对应多个IP，后面我会解释；</li></ul></div></div><p>下面会介绍一些常用的域名。</p><h4 id="免费域名"><a href="#免费域名" class="headerlink" title="免费域名"></a>免费域名</h4><h5 id="不可解析域名"><a href="#不可解析域名" class="headerlink" title="不可解析域名"></a>不可解析域名</h5><p>我们可以免费获取到的子域名经常有：<code>github.io</code>、<code>vercel.app</code>、<code>netlify.app</code>、<code>pages.dev</code>、<code>workers.dev</code>，注意，我使用的是子域名，因为这些域名你都没有修改<code>dns</code>解析的权限，你只能获取到系统所分配的一个免费域名用作访问。</p><ul><li><p><code>github.io</code>：<code>github page</code>服务所分配的自动域名，前缀常为用户名称，使用广泛，可信度极高，但是经过测试，该域名的服务器均位于美国加州，距离较远，延迟较大，速度较慢，其实并不适合国内建站，但是好处就是并没有被国内屏蔽，在正常网络下大部分地区可以正常访问。</p><p><img src="" data-lazy-src="https://p.liiiu.cn/i/2025/02/26/67bedb575e799.webp" alt="GitHub节点分布情况"></p></li><li><p><code>vercel.app</code>：<code>vercel</code>公司的系统分配域名，十分良心，节点遍布世界各地，在国内使用十分广泛，唯一缺点就是，从前几年开始，<code>vercel.app</code>域名被<code>SNI</code>阻断，导致无法直接访问，所以可以通过绑定域名来解决阻断的问题，经过优化后，甚至可以做到全绿的状态。</p><p><img src="" data-lazy-src="https://p.liiiu.cn/i/2025/02/26/67bef88910648.webp" alt="vercel速度检测"></p></li><li><p><code>netlify.app</code>：来自另一个免费托管平台，但是由于注册审核略显严格，至今尚未注册成功，所以无法检测，但是域名本身并未封禁，速度也较快。</p></li><li><p><code>pages.dev</code>：赛博活佛<code>Cloudflare</code>的静态页面服务，域名可以直接使用，速度较快，但是仍然无法自行修改<code>dns</code>解析，由于近期<code>cf</code>颁发规则，禁止使用优选，这里我使用最基本的站点进行测速。</p><p><img src="" data-lazy-src="https://p.liiiu.cn/i/2025/02/26/67bef9a41061b.webp" alt="pages测速"></p></li><li><p><code>workers.dev</code>：仍然属于赛博活佛，但是这个域名在国内是属于被阻断的状态，所以不建议直接使用。</p></li></ul><p>以上是比较常用的一些域名，还有很多类似的个人域名分发站点，本站<strong>极不推荐</strong>这种域名，因为很有可能会在站点日活量达到一定程度后，强行解析到广告站点，这样对友链的朋友站点会有很严重的伤害，虽然可能存在一些较为良心的站点，但是为了安全，希望大家选择值得信赖的托管平台。</p><h5 id="可解析域名"><a href="#可解析域名" class="headerlink" title="可解析域名"></a>可解析域名</h5><p>这类域名一般是免费站点的最佳选择，但是随着羊的毛渐渐被薅秃，很多知名的免费域名逐渐变得不稳定，如：<code>eu.org</code>，<code>us.kg</code>等等，再加上不法分子的利用，域名逐渐被污染，不少免费二级域名都陨落于此，目前可用的屈指可数，这里我列举几个目前我认为还可以申请且可以解析的免费域名。</p><ol><li><code>cloudns</code>：我的第一个域名也是来自于此，这里有很多前缀可以自行申请，但是不一定可以解析到<code>cloudflare</code>上，需要看其具体政策，但是无论是在<code>cloudns</code>还是<code>Cloudflare</code>上进行解析，至少也是可以解析，并且因为也属于大厂，被劫持的可能性几乎不存在。</li><li><code>Github</code>学生包：<code>GitHub</code>可以申请学生包，相信大家都知道了，但是可能你还不了解的事，<code>GitHub</code>可以申请一年的<code>me</code>域名，名称任选，可以解析到任何你想要解析的地方，甚至可以将<code>dns</code>服务器放在国内以进一步提高访问速度。</li></ol><h4 id="付费域名"><a href="#付费域名" class="headerlink" title="付费域名"></a>付费域名</h4><p>既然付了费，那么一定是可以解析的<del>应该不会有笨蛋去花钱买二级不可解析的域名吧</del>，比如国内的万网，腾讯云，华为云，都是可以购买域名的，且首年基本上都会有优惠，买域名的话，可以先考虑一下，你是准备购买一年后一点点续费，还是一次性买十年，想好这个问题，我们继续向下进行。</p><h5 id="逐渐黑产化"><a href="#逐渐黑产化" class="headerlink" title="逐渐黑产化"></a>逐渐黑产化</h5><p>有些域名很便宜，比如六位数字的<code>.xyz</code>域名，这就是经典的黑产域名，这些域名可能会在晚上的部分地区被阻断，尤其是在国内的一些网络环境中。由于它们通常价格低廉，且容易被滥用，很多黑产分子会利用这些域名来进行恶意操作，诸如钓鱼、勒索病毒传播等。为了提升网络安全性，部分网络运营商会在晚间流量高峰期或夜间时段对这些域名进行屏蔽处理，甚至有时会直接将整个后缀列入黑名单。</p><p>虽然说很多黑产都是来源于此处，但是其实被屏蔽的仍然是极少数，如果个人使用一般不会被屏蔽，比不稳定的二级分发域名会强很多，所以如果预算不宽裕，可以买一个六位数字的<code>xyz</code>域名用作过渡，等手头宽裕后再尝试更加美观的域名。</p><p>除此之外，还有一些价格较为便宜的域名，比如<code>.top</code>，但是说实话，我对这个域名的印象并不好，详见下面这篇文章。</p><div class="liushen-tag-link"><a class="tag-Link" target="_blank" href="https://blog.liushen.fun/posts/159f1aa5/"><div class="tag-link-tips">😃来自本站，本站可确保其安全性，请放心点击跳转</div><div class="tag-link-bottom"><div class="tag-link-left" style="background-image:url(https://p.liiiu.cn/i/2024/08/01/66aae601dbc9b.webp)"></div><div class="tag-link-right"><div class="tag-link-title">域名迁移至 blog.liushen.fun</div><div class="tag-link-sitename">LiuShen's Blog</div></div><i class="fa-solid fa-angle-right"></i></div></a></div><p>2024年7月25日，互联网名称与数字地址分配机构于7月16日致函<code>.top</code>域名注册机构的所有者[<a target="_blank" rel="external nofollow noopener noreferrer" href="/safego/?u=aHR0cHM6Ly93d3cuaWNhbm4ub3JnL3VwbG9hZHMvY29tcGxpYW5jZV9ub3RpY2UvYXR0YWNobWVudC8xMjI1L2hlZGx1bmQtdG8td2VueGlhLTE2anVsMjQucGRm">PDF 文件</a>]，要求其在8月中旬之前给予回复，<strong>建立和完善管理网络钓鱼报告和暂停滥用域名的系统，否则将被吊销域名销售许可证</strong>，<code>npmmirror</code>也将<code>top</code>列入了黑名单，需要手动申请才可以继续使用。恰巧，我的第一个域名也是<code>.top</code>，在什么也没做的情况下遭到了无妄之灾，我的很多朋友也是一样的情况，所以我个人对于<code>.top</code>可能有部分偏见。</p><h5 id="一年年续费"><a href="#一年年续费" class="headerlink" title="一年年续费"></a>一年年续费</h5><p>如果你想要较为漂亮的域名，且选择一年一年的续费，我建议购买以下的域名：</p><p><img src="" data-lazy-src="https://p.liiiu.cn/i/2025/02/26/67bf0166c6a93.webp" alt="域名列表"></p><p>这是阿里云域名续费价格总表，所有以上提到的域名续费价格均未超过40元，且新购价格通常也会有一定优惠。然而，购买域名时要特别注意续费价格，而不是被低廉的新购价格迷惑了眼睛。对于新手来说，这一点尤为重要，一定要提前了解清楚续费情况，以免后续费用过高而忍痛放弃域名。</p><h5 id="购买十年"><a href="#购买十年" class="headerlink" title="购买十年"></a>购买十年</h5><p>如果一次性购买十年，较为便宜的有<code>.top</code>，<code>.site</code>，<code>.fun</code>等，但是仍然需要注意续费价格，以上三种续费价格均小于100，甚至<code>top</code>的续费价格仅需32元，但是由于上面所说的要求，我个人并不推荐购买<code>.top</code>。</p><p><img src="" data-lazy-src="https://p.liiiu.cn/i/2025/02/26/67bf0371c2af4.webp" alt="十年价格域名列表"></p><p>以上域名价格可能会有波动，大家也可以去阿里云官网进行查看。</p><div class="liushen-tag-link"><a class="tag-Link" target="_blank" href="/safego/?u=aHR0cHM6Ly93YW53YW5nLmFsaXl1bi5jb20vaGVscC9wcmljZS5odG1s" rel="external nofollow noopener noreferrer"><div class="tag-link-tips">🙄引用站外地址，不保证站点的可用性和安全性</div><div class="tag-link-bottom"><div class="tag-link-left" style="background-image:url(https://p.liiiu.cn/i/2024/07/27/66a4632bbf06e.webp)"></div><div class="tag-link-right"><div class="tag-link-title">万网域名价格</div><div class="tag-link-sitename">本页面仅展示普通域名标准价格，白金词、保留词等特殊域名及域名活动价格以订单实际价格为准。</div></div><i class="fa-solid fa-angle-right"></i></div></a></div><p>以上就是域名推荐，一个好的域名是一个网站的门面，当然在很多加速中，域名也是不可或缺的一环，下面我将说明如何对网站进一步优化。</p><h3 id="DNS解析"><a href="#DNS解析" class="headerlink" title="DNS解析"></a>DNS解析</h3><p>网站访问，首先要经过的就是<code>DNS</code>解析，解析速度对于网站的访问速度一般没有什么特别大的影响，因为这部分数据经常会在本地缓存，第二次访问几乎不需要时间，但是我个人建议将解析移到国内，毕竟能提升一点算一点（QAQ）。</p><h4 id="A解析"><a href="#A解析" class="headerlink" title="A解析"></a>A解析</h4><p><code>A</code> 解析（Address Record）是将域名映射到服务器的 IP 地址，是最基本的一种解析方式。当你输入网址时，<code>DNS</code>会将域名解析成<code>IP</code>地址，指引浏览器访问正确的服务器。如果你的站点访问主要面向国内用户，可以将解析指向国内的服务器，提升解析速度，避免跨境解析带来的延迟。</p><h4 id="CNAME解析"><a href="#CNAME解析" class="headerlink" title="CNAME解析"></a>CNAME解析</h4><p><code>CNAME</code>（Canonical Name）解析是一种将一个域名指向另一个域名的方式。简单来说，<code>CNAME</code>记录并不直接将域名解析成<code>IP</code>地址，而是将域名指向另一个域名。这个指向的目标域名最终会通过<code>A</code>解析或其他类型的记录转化为<code>IP</code>地址，从而完成访问，如果你在使用华为云，你可以尝试打开<code>DNS</code>解析控制台，进入解析页面，你可以找到不同地域解析的方式：</p><p><img src="" data-lazy-src="https://p.liiiu.cn/i/2025/02/27/67bfbc29d19c3.webp" alt="分地域解析"></p><p>比如<code>vercel</code>的优选加速，实际上是通过很多的<code>A</code>记录实现的，如下图所示：</p><p><img src="" data-lazy-src="https://p.liiiu.cn/i/2025/02/27/67bfbc692819e.webp" alt="自建vercel优选"></p><p>经过我测速，我将不同线路中访问最快的主机，通过A记录分别解析到移动、联通、电信以及默认，这样就实现了一个最简单的加速<code>CNAME</code>节点，你可以将你的站点通过<code>cname</code>解析到这个地址，从而实现加速，当然你还可以更加细致的划分，比如按照省划分，这样会做到更快的速度，但是相应的，手动维护起来可能会更加费事。</p><p>以上就是<code>DNS</code>解析的基本工作原理，其中讲解了<code>CDN</code>通过<code>CNAME</code>解析实现分线路加速，下面我们讲讲其中的<code>CDN</code>加速。</p><h3 id="内容分发CDN"><a href="#内容分发CDN" class="headerlink" title="内容分发CDN"></a>内容分发CDN</h3><p>内容分发，意思就是将你网站中的所有静态文件包括页面<code>html</code>，<code>js</code>，<code>css</code>等，放在服务商的服务器中，且拷贝多份放在世界各地，每次访问时根据不同地理位置就近访问，达到防并发卡顿，加快访问速度的目的。</p><p><code>cdn</code>采用的方式通常是<code>CNAME</code>解析，<code>CNAME</code>可以看作为A记录的合集，如果你尝试用测速网站检测<code>CNAME</code>地址的<code>DNS</code>记录，你就会发现他在不同位置会有不同的A解析，</p><p>如果你有一个域名，你就可以轻松的通过设置源站接入<code>cdn</code>，这个源站既可以是域名也可以是<code>ip</code>，比如你想加速<code>github page</code>的域名，只需将<code>GitHub page</code>地址作为源站即可，每次更新文章后，手动去后台刷新缓存，即可达到很完美的速度，无论是多么差的源站，只要选择正确合适的<code>cdn</code>，一定可以达到极好的效果，这也是静态博客的最大优势，文件完全静态，可以任意存储，而动态博客由于直连数据库，页面的内容可能随时发生变化，所以并不适合普通<code>cdn</code>加速。</p><p>其实个人使用的话，内容分发并不贵，甚至很多都有用不完的免费额度，但是门槛较高，如果想要使用国内<code>cdn</code>，需要备案域名才可以使用，备案域名又需要服务器，这样，成本自然而然就高了起来，当然，并不是说没有备案就无法使用<code>cdn</code>了，有很多<code>cdn</code>有亚太专线，专门针对于不想备案，但是又想国内有良好速度的网站。下面是我常见的一些有着免费额度，很容易接入的<code>cdn</code>：</p><table><thead><tr><th align="center">云服务</th><th align="center">免费流量</th><th align="center">免费存储</th><th align="center">请求限制</th><th align="center">缺点</th><th align="center">地址</th></tr></thead><tbody><tr><td align="center">多吉云</td><td align="center">20GB/月</td><td align="center">10GB</td><td align="center">200万次/月</td><td align="center">存储桶需要自己绑定域名，且需要备案</td><td align="center"><a target="_blank" rel="external nofollow noopener noreferrer" href="/safego/?u=aHR0cHM6Ly93d3cuZG9nZWNsb3VkLmNvbS8_aXVpZD05MTcz">dogecloud.com</a></td></tr><tr><td align="center">无畏云</td><td align="center">30GB/月</td><td align="center">无</td><td align="center">无限制</td><td align="center">无法设置上限，不安全，需要备案</td><td align="center"><a target="_blank" rel="external nofollow noopener noreferrer" href="/safego/?u=aHR0cHM6Ly9zdS5zY3Rlcy5jb20vcmVnaXN0ZXI_Y29kZT04OXJxOW56aDIyYmRu">su.sctes.com</a></td></tr><tr><td align="center">又拍云</td><td align="center">10GB/月</td><td align="center">10GB</td><td align="center">无限制</td><td align="center">存储不给 HTTPS，加入联盟麻烦</td><td align="center"><a target="_blank" rel="external nofollow noopener noreferrer" href="/safego/?u=aHR0cHM6Ly93d3cudXB5dW4uY29tLw">upyun.com</a></td></tr><tr><td align="center">七牛云</td><td align="center">10GB/月</td><td align="center">15GB</td><td align="center">100万次/月</td><td align="center">流量较少</td><td align="center"><a target="_blank" rel="external nofollow noopener noreferrer" href="/safego/?u=aHR0cHM6Ly93d3cucWluaXUuY29tLw">qiniu.com</a></td></tr><tr><td align="center">Cloudflare</td><td align="center">无限制</td><td align="center">无</td><td align="center">100,000次/天</td><td align="center">速度较慢</td><td align="center"><a target="_blank" rel="external nofollow noopener noreferrer" href="/safego/?u=aHR0cHM6Ly93d3cuY2xvdWRmbGFyZS5jb20vemgtY24v">cloudflare.com</a></td></tr><tr><td align="center">初七云</td><td align="center">25GB/月</td><td align="center">无</td><td align="center">无限制</td><td align="center">亚太 CDN 较慢，免费存储无</td><td align="center"><a target="_blank" rel="external nofollow noopener noreferrer" href="/safego/?u=aHR0cHM6Ly93d3cuY2h1cWl5dW4uY29tLw">chuqiyun.com</a></td></tr><tr><td align="center">丘盾云</td><td align="center">无限制</td><td align="center">无</td><td align="center">无限制</td><td align="center">完全免费，但缺乏其他支持</td><td align="center"><a target="_blank" rel="external nofollow noopener noreferrer" href="/safego/?u=aHR0cHM6Ly93d3cuc2Nkbi5rb3hpdXFpdS5jYy8">scdn.koxiuqiu.cc</a></td></tr></tbody></table><p>当然以上数据为个人简单整理，可能稍微有欠缺，或者不正确，仅供参考，顺序也不代表推荐排序，选择一个够用，习惯的即可！</p><h4 id="Vercel优化"><a href="#Vercel优化" class="headerlink" title="Vercel优化"></a>Vercel优化</h4><p>其实<code>vercel</code>也是一个<code>CDN</code>，不过因为所有线路都在国外，所以可能网速上并不是很乐观，由于厂商的就近分配策略，导致大部分的国内站点均分配到了同一节点，如中国香港，中国台湾的节点，导致网络拥塞，从而造成卡慢。</p><p>此时就出现了优选节点，优选节点并不是将节点本身的性能提高，而是从众多节点中找寻到访问速度最快的节点，定时检测，然后再在不同地理位置上分流，从而缓解单节点压力，虽然可能节点距离更远，但是速度却会大幅度提升。</p><p>这里我仅推荐一个优化节点。<code>xingpingcn</code>：</p><div class="liushen-tag-link"><a class="tag-Link" target="_blank" href="/safego/?u=aHR0cHM6Ly9naXRodWIuY29tL3hpbmdwaW5nY24vZW5oYW5jZWQtRmFhUy1pbi1DaGluYQ" rel="external nofollow noopener noreferrer"><div class="tag-link-tips">🙄引用站外地址，不保证站点的可用性和安全性</div><div class="tag-link-bottom"><div class="tag-link-left" style="background-image:url(https://p.liiiu.cn/i/2024/07/27/66a461a3098aa.webp)"></div><div class="tag-link-right"><div class="tag-link-title">enhanced-FaaS-in-China</div><div class="tag-link-sitename">github.com@xingpingcn</div></div><i class="fa-solid fa-angle-right"></i></div></a></div><p>使用起来也很简单，只需要将他系统所给的<code>cname.vercel-dns.com</code>修改为项目中的优选<code>CNAME</code>地址，即可大幅度提升网站访问速度，实测低峰期可以做到国内全深绿。</p><p><img src="" data-lazy-src="https://p.liiiu.cn/i/2025/02/27/67bfb90c41c23.webp" alt="简单测速"></p><p>除了<code>vercel</code>，<code>cloudflare</code>、<code>Netlify</code>等厂商也是可以通过类似的方法优化的，甚至你可以自己测速，自行搭建优选节点，感受一下解析的魅力，只需要分地域，使用<code>A</code>解析，将其解析到最快的<code>IP</code>即可。</p><p>有了<code>cdn</code>，网站本身的速度基本上就能保证了，但是仍然会出现加载速度慢的情况，那就是下面这个啦！</p><h3 id="JSCDN"><a href="#JSCDN" class="headerlink" title="JSCDN"></a>JSCDN</h3><p>我不清楚这个名字准不准确，但是为了区分，我就这样写啦！该类<code>cdn</code>和上述<code>cdn</code>不同，<code>JSCDN</code>主要是针对于<code>GitHub</code>，<code>npm</code>，<code>wordpress</code>上的静态文件进行的加速，或许可以加速<code>html</code>，但是一般不会有人这样干(听说是有点不道德哦)，<code>Jsdelivr</code>就是其中最典型的代表。</p><p><code>hexo</code>站点经常会引用一些外部直链文件，且很多主题都是默认<code>Jsdelivr</code>，由于<code>Jsdelivr</code>在早些年被吊销了备案，导致在国内的访问速度一落千丈，目前已经成为了大部分站点的”累赘”，哪怕上了<code>CDN</code>也是完全不济于事，因为静态直链文件走的是另一条线路，并没有通过你的<code>CDN</code>加速。如果你的站点加速慢，可以尝试点击<code>F12</code>，搜索一下”jsdelivr.net”，如果页面中存在这个文件，那么，你的网站加载速度大概率是被他拖慢啦！</p><p>解决方法也很简单，只需要替换掉<code>jsdelivr</code>的所有地址即可，国内也有很多高速的<code>jscdn</code>无偿为大家提供服务，下面是我找到的部分目前可用的<code>cdn</code>，希望能够帮到大家，为公益服务致敬！</p><table><thead><tr><th align="center">序号</th><th align="center">域名</th><th align="center">描述</th></tr></thead><tbody><tr><td align="center">1</td><td align="center"><a target="_blank" rel="external nofollow noopener noreferrer" href="/safego/?u=aHR0cHM6Ly9jZG4uaW9jZG4uY2Mv">cdn.iocdn.cc</a></td><td align="center">括彩云国内CDN提供支持</td></tr><tr><td align="center">2</td><td align="center"><a target="_blank" rel="external nofollow noopener noreferrer" href="/safego/?u=aHR0cHM6Ly9zNC56c3RhdGljLm5ldC8">s4.zstatic.net</a></td><td align="center">多个云服务融合国内CDN提供支持</td></tr><tr><td align="center">3</td><td align="center"><a target="_blank" rel="external nofollow noopener noreferrer" href="/safego/?u=aHR0cHM6Ly9jZG4uanNkbWlycm9yLmNvbS8">cdn.jsdmirror.com</a></td><td align="center">多个云服务融合国内CDN提供支持</td></tr><tr><td align="center">4</td><td align="center">jsdelivr.topthink.com</td><td align="center">阿里云CDN提供支持（无主页链接）</td></tr></tbody></table><p>在前面有一篇文章中，我介绍了怎么在<code>butterfly</code>主题中怎么全篇替换，这里我也不再赘述，详见：</p><div class="liushen-tag-link"><a class="tag-Link" target="_blank" href="https://blog.liushen.fun/posts/cd89007e/#Hexo%E4%B8%8A%E4%BD%BF%E7%94%A8"><div class="tag-link-tips">😃来自本站，本站可确保其安全性，请放心点击跳转</div><div class="tag-link-bottom"><div class="tag-link-left" style="background-image:url(https://p.liiiu.cn/i/2024/08/01/66aae601dbc9b.webp)"></div><div class="tag-link-right"><div class="tag-link-title">智云加速--JSDelivr国内公益加速镜像</div><div class="tag-link-sitename">LiuShen's Blog</div></div><i class="fa-solid fa-angle-right"></i></div></a></div><p>如果你能做到以上的所有步骤，那么，恭喜你，你的网站的速度目前已经不逊色于任何主流网站！</p><h3 id="Service-Worker"><a href="#Service-Worker" class="headerlink" title="Service Worker"></a>Service Worker</h3><p><code>Service Worker</code>又被简称为<code>sw</code>，体验上会加速网站访问，其实他的根本原理就是在本地存了所有的网站静态文件，每次访问会直接从本地访问，已达到加速的目的，且会有一个生命周期和更新指令，当网站更新后，下次访问网站时，会检测到一个截然不同的版本值，就会自动刷新缓存。</p><p>这种的做法可能会造成极为严重的后果，如果配置不好，可能会将文件的<del>💩</del>拉在用户本地，占用空间，甚至可能造成用户永远无法看到你的最新更新，所以这里我不进行讲解，<del>因为我自己也不会</del>，如果你实在想实现，可以尝试实现下面的项目，由<a target="_blank" rel="external nofollow noopener noreferrer" href="/safego/?u=aHR0cHM6Ly9rbWFyLnRvcC8">空梦</a>维护开发的一个项目，比原生的<code>sw</code>有更完善的功能：</p><div class="liushen-tag-link"><a class="tag-Link" target="_blank" href="/safego/?u=aHR0cHM6Ly9zd3BwLmttYXIudG9wLw" rel="external nofollow noopener noreferrer"><div class="tag-link-tips">🙄引用站外地址，不保证站点的可用性和安全性</div><div class="tag-link-bottom"><div class="tag-link-left" style="background-image:url(https://p.liiiu.cn/i/2024/07/27/66a4632bbf06e.webp)"></div><div class="tag-link-right"><div class="tag-link-title">Service Worker Plus Plus</div><div class="tag-link-sitename">一个用于为网站快速生成一个高度可用的Service Worker的工具</div></div><i class="fa-solid fa-angle-right"></i></div></a></div><p>不再多说，我们进行最后一个部分，国内外分流！</p><h3 id="国内外分流"><a href="#国内外分流" class="headerlink" title="国内外分流"></a>国内外分流</h3><p>为什么要进行国内外分流呢？主要还是用于抗攻击，众所周知，大部分的网络攻击均来自于国外，而又众所周知，我们的赛博活佛<code>Cloudflare</code>可以防住海量伤害且完全免费，但是在国内，<code>cf</code>的访问速度越来越慢，甚至部分地区会出现无法访问的情况，所以，国内外分流就显得很有必要了，国内走常规国内<code>cdn</code>线路，国外走<code>Cloudflare</code>线路，不仅可以防止拖慢国内用户访问速度，还可以防御国外攻击的同时，给国外线路加速(<code>Cloudflare</code>在国外可是首屈一指的<code>CDN</code>供应商)。</p><p>分流其实也非常简单，比如本站选择的方式是分流到了<code>Cloudflare Pages</code>，<code>Pages</code>允许在域名解析不接入的情况下，通过<code>CNAME</code>自定义域名，这里我们可以通过<code>DNS</code>解析提供商给予的境外分流，实现分线路解析，如下图所示。</p><p><img src="" data-lazy-src="https://p.liiiu.cn/i/2025/02/27/67bfc0f91df16.webp" alt="国内外分流"></p><p>这里<code>cdn</code>服务商检测不到异常，是因为<code>dns</code>检查服务器的地域，比如国内<code>cdn</code>自然在国内，<code>cloudflare</code>自然在国外，所以在对应的区域内，均检测正常，但是如果出现国外线路的<code>DNS</code>检查服务器在国内，可能会出现无法通过域名检测的情况，比如初七云，如果你仅将国外线路分流到初七云，可能会出现域名解析错误的情况发生：</p><p><img src="" data-lazy-src="https://p.liiiu.cn/i/2025/02/27/67bfc24c12f0e.webp" alt="域名解析错误"></p><p>但是实际体验下来，初七云就算解析错误，仍然可以使用，这个就和<code>cdn</code>厂商的设定有关系了，找准这点问题即可，如果是免费用户，推荐国外分流<code>Cloudflare</code>，国内任选。</p><h2 id="总结"><a href="#总结" class="headerlink" title="总结"></a>总结</h2><ul><li><p>总算是哔哔完了，可能这里的网站加速方法并不算完全全面，但我敢肯定，采用这些方法一定能让你的站点提升速度，达到与大部分网站不相上下的水平。如果你正面临访问速度的问题，或许这些方案能帮助你大幅优化站点性能。希望这篇文章能为你提供一些有价值的参考。</p><p>下面是我目前站点的整体加速流程，我整理了一个简单的清单，希望对你有帮助：</p><ul><li><strong>域名</strong>：自购 — 域名的选择很重要，尽量挑选那些可靠的域名注册商，并且要注意域名的解析速度。</li><li><strong>DNS解析</strong>：阿里云<code>DNS</code> — 采用国内快速、稳定的<code>DNS</code>服务，减少因<code>DNS</code>解析带来的延迟。</li><li><strong>内容分发CDN</strong>：多吉云 — 使用了一个国内<code>CDN</code>服务，能够根据用户的地理位置智能选择最合适的加速节点，提高网站加载速度。</li><li><strong>JSCDN</strong>：自建，国内<code>CDN</code> — 对于静态资源，我使用了国内 CDN 进行加速，特别是<code>JavaScript</code>和<code>CSS</code>文件，极大缩短了文件的加载时间。</li><li><strong>SW</strong>：无 — 目前没有使用 <code>Service Worker</code>，不过可以考虑后续进行渐进式<code>Web</code>应用的优化，提升离线访问能力和缓存策略。</li><li><strong>国内外分流</strong>：<code>Cloudflare</code> — 为了更好的国内外访问体验，我在站点上配置了<code>Cloudflare</code>的智能分流功能，确保国内外用户都能通过最快的节点访问站点。</li></ul><p>通过合理配置<code>DNS</code>解析、<code>CDN</code>加速和一些基础优化，可以大幅提升网站的访问速度，尤其是在国内外用户访问体验上的差距。希望这篇文章中的一些思路和方案能为你的站点加速之路提供帮助，让你的网站无论在国内还是国际都能有一个流畅的表现。</p></li></ul><h2 id="每日一图"><a href="#每日一图" class="headerlink" title="每日一图"></a>每日一图</h2><p>图片来自<a target="_blank" rel="external nofollow noopener noreferrer" href="/safego/?u=aHR0cHM6Ly9oYW93YWxscGFwZXIuY29tL2hvbWVWaWV3TG9vay8xNjQwMTA0MDUzMzczNjgzMg">哲风壁纸</a></p><p><img src="" data-lazy-src="https://p.liiiu.cn/i/2025/02/27/67bfc6686adea.webp" alt="夜景咖啡店"></p></article><div class="post-copyright"><div class="post-copyright__title"><span class="post-copyright-info"><h>静态网站优化方案</h></span></div><div class="post-copyright__type"><span class="post-copyright-info"><a href="https://blog.liushen.fun/posts/260f4f9a/">https://blog.liushen.fun/posts/260f4f9a/</a></span></div><div class="post-copyright-m"><div class="post-copyright-m-info" style="position:relative;z-index:3"><div class="post-copyright-a" style="display:inline-block;width:fit-content;margin:20px 20px 20px 0"><h>作者</h><div class="post-copyright-cc-info"><h>LiuShen</h></div></div><div class="post-copyright-c" style="display:inline-block;width:fit-content;margin:20px 20px 20px 0"><h>发布于</h><div class="post-copyright-cc-info"><h>2025-02-27</h></div></div><div class="post-copyright-u" style="display:inline-block;width:fit-content;margin:20px 20px 20px 0"><h>更新于</h><div class="post-copyright-cc-info"><h>2025-02-27</h></div></div><div class="post-copyright-c" style="display:inline-block;width:fit-content;margin:20px 20px 20px 0"><h>许可协议</h><div class="post-copyright-cc-info"><a rel="noopener" target="_blank" title=" CC BY 4.0" href="https://creativecommons.org/licenses/by-nc-sa/4.0/?ref=chooser-v1">CC BY-NC-SA 4.0</a></div></div></div></div></div><div class="tag_share"><div class="post-meta__tag-list"><a class="post-meta__tags" href="/tags/%E5%8D%9A%E5%AE%A2/">博客</a><a class="post-meta__tags" href="/tags/%E7%BD%91%E9%80%9F%E4%BC%98%E5%8C%96/">网速优化</a><a class="post-meta__tags" href="/tags/%E9%9D%99%E6%80%81%E7%BD%91%E7%AB%99/">静态网站</a></div><div class="post-share"><div class="social-share" data-image="https://p.liiiu.cn/i/2025/02/26/67becab466c8a.webp" data-sites="facebook,twitter,wechat,weibo,qq"></div><link rel="stylesheet" href="https://jsd.liiiu.cn/npm/butterfly-extsrc@1.1.4/sharejs/dist/css/share.min.css" media="print" onload='this.media="all"'><script src="https://jsd.liiiu.cn/npm/butterfly-extsrc@1.1.4/sharejs/dist/js/social-share.min.js" defer></script></div></div><div class="post-reward"><div class="reward-button"><i class="fas fa-qrcode"></i>来😍鼠标过来一点~</div><div class="reward-main"><ul class="reward-all"><li class="reward-item"><a href="/config/img/wechat.png" target="_blank"><img class="post-qr-code-img" src="" data-lazy-src="/config/img/wechat.png" alt="微信"></a><div class="post-qr-code-desc">微信</div></li><li class="reward-item"><a href="/config/img/wechat.png" target="_blank"><img class="post-qr-code-img" src="" data-lazy-src="/config/img/wechat.png" alt="支付宝"></a><div class="post-qr-code-desc">支付宝</div></li></ul></div></div><nav class="pagination-post" id="pagination"><a class="prev-post pull-left" href="/posts/8338183a/" title="从Memos转移到Moments"><img class="cover" src="" data-lazy-src="https://p.liiiu.cn/i/2025/02/18/67b40d14e9390.webp" onerror='onerror=null,src="/img/404.jpg"' alt="cover of previous post"><div class="pagination-info"><div class="label">上一篇</div><div class="prev_info">从Memos转移到Moments</div></div></a><a class="next-post pull-right" href="/posts/3a813929/" title="Certimate--自动化申请并部署证书到所有平台"><img class="cover" src="" data-lazy-src="https://p.liiiu.cn/i/2025/03/07/67ca9a617f857.webp" onerror='onerror=null,src="/img/404.jpg"' alt="cover of next post"><div class="pagination-info"><div class="label">下一篇</div><div class="next_info">Certimate--自动化申请并部署证书到所有平台</div></div></a></nav><div class="relatedPosts"><div class="headline"><i class="fas fa-thumbs-up fa-fw"></i><span>相关推荐</span></div><div class="relatedPosts-list"><a href="/posts/7e3de29e/" title="小白的网站部署之路"><img class="cover" src="" data-lazy-src="https://p.liiiu.cn/i/2024/03/25/6600e02f2cecb.png" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2024-03-15</div><div class="title">小白的网站部署之路</div></div></a><a href="/posts/891edc78/" title="Cloudflare/Vercel项目推荐(1)"><img class="cover" src="" data-lazy-src="https://p.liiiu.cn/i/2024/05/13/6642230a83b07.png" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2024-05-15</div><div class="title">Cloudflare/Vercel项目推荐(1)</div></div></a><a href="/posts/3850e950/" title="Cloudflare/Vercel项目推荐(2)"><img class="cover" src="" data-lazy-src="https://p.liiiu.cn/i/2024/07/31/66a922cb9adcc.webp" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2024-08-01</div><div class="title">Cloudflare/Vercel项目推荐(2)</div></div></a></div></div><hr class="custom-hr"><div id="post-comment"><div class="comment-head"><div class="comment-headline"><i class="fas fa-comments fa-fw"></i> <span>评论</span></div></div><div class="comment-wrap"><div><div id="artalk-wrap"></div></div></div></div></div><div class="aside-content" id="aside-content"><div class="card-widget card-info is-center"><div class="author-info-detail"><p class="author-info-hello">👋 欢迎光临！</p><p class="author-info-desc">你们好呀！我是站长LiuShen！一个快乐，积极，热爱生活的孩纸！😜😜😜</p></div><div class="avatar-img"><img class="mood-icon" src="" data-lazy-src="https://p.liiiu.cn/i/2025/03/14/67d301461a24a.webp" alt="🤤" onerror='this.onerror=null,this.src="/img/friend_404.gif"'><img src="" data-lazy-src="https://p.liiiu.cn/i/2025/03/13/67d2fc82d329c.webp" onerror='this.onerror=null,this.src="/img/friend_404.gif"' alt="avatar"></div><div class="author-info-name">LiuShen</div><div class="site-data"><a href="/archives/"><div class="headline">文章</div><div class="length-num">72</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">98</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">3</div></a></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/willow-god"><i class="fab fa-github"></i><span>Follow Me 🛫</span></a><div class="card-info-social-icons"><a class="social-icon" href="mailto:01@liushen.fun" target="_blank" title="Email"><i class="fa-solid fa-envelope"></i></a><a class="social-icon" href="http://wpa.qq.com/msgrd?v=3&amp;uin=3162475700&amp;site=qq&amp;menu=yes" target="_blank" title="QQ：3162475700"><i class="fa-brands fa-qq"></i></a><a class="social-icon" href="https://wakatime.com/@LiuShen" target="_blank" title="Wakatime"><i class="fa-solid fa-chart-column"></i></a><a class="social-icon" href="https://blog.liushen.fun/atom.xml" target="_blank" title="rss地址"><i class="fa-solid fa-rss"></i></a></div></div><div class="card-widget" id="card-poem"><div id="poem_sentence"></div><div id="poem_info"><div id="poem_dynasty"></div><div id="poem_author"></div></div></div><script src="/js/jinrishici.js" charset="utf-8"></script><script>jinrishici.load((function(e){var n=document.querySelector("#poem_sentence"),t=document.querySelector("#poem_author"),o=document.querySelector("#poem_dynasty"),r=e.data.content;r=r.substr(0,r.length-1),n.innerHTML=r,o.innerHTML=e.data.origin.dynasty,t.innerHTML=e.data.origin.author+"《"+e.data.origin.title+"》"}))</script><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content"><p><strong>博客架构概览：</strong><br>⚙️框架核心：Hexo<br>🕹️界面设计：Butterfly<br>🔮安全保障：长亭雷池<br>🔩管理工具：宝塔面板，1Panel<br>🎰服务器支持：阿里云，腾讯云<br>🎲CDN加速：多吉云，CloudFlare<br><strong>快捷跳转地址：</strong><br>🧩个人相册：<a target="_blank" rel="noopener" href="https://xc.liushen.fun">xc.liushen.fun</a><br>🤖个人导航：<a target="_blank" rel="noopener" href="https://www.liushen.fun">www.liushen.fun</a><br></p><img src="" data-lazy-src="/config/img/notice.gif" alt="可爱捏" title="可爱捏" style="width:100%;border-radius:10px"></div></div><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span><span class="toc-percentage"></span></div><div class="toc-content"><ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%A2%8E%E7%A2%8E%E5%BF%B5"><span class="toc-text">碎碎念</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%BC%98%E5%8C%96%E5%86%85%E5%AE%B9"><span class="toc-text">优化内容</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%9F%9F%E5%90%8D"><span class="toc-text">域名</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%85%8D%E8%B4%B9%E5%9F%9F%E5%90%8D"><span class="toc-text">免费域名</span></a><ol class="toc-child"><li class="toc-item toc-level-5"><a class="toc-link" href="#%E4%B8%8D%E5%8F%AF%E8%A7%A3%E6%9E%90%E5%9F%9F%E5%90%8D"><span class="toc-text">不可解析域名</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#%E5%8F%AF%E8%A7%A3%E6%9E%90%E5%9F%9F%E5%90%8D"><span class="toc-text">可解析域名</span></a></li></ol></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E4%BB%98%E8%B4%B9%E5%9F%9F%E5%90%8D"><span class="toc-text">付费域名</span></a><ol class="toc-child"><li class="toc-item toc-level-5"><a class="toc-link" href="#%E9%80%90%E6%B8%90%E9%BB%91%E4%BA%A7%E5%8C%96"><span class="toc-text">逐渐黑产化</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#%E4%B8%80%E5%B9%B4%E5%B9%B4%E7%BB%AD%E8%B4%B9"><span class="toc-text">一年年续费</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#%E8%B4%AD%E4%B9%B0%E5%8D%81%E5%B9%B4"><span class="toc-text">购买十年</span></a></li></ol></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#DNS%E8%A7%A3%E6%9E%90"><span class="toc-text">DNS解析</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#A%E8%A7%A3%E6%9E%90"><span class="toc-text">A解析</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#CNAME%E8%A7%A3%E6%9E%90"><span class="toc-text">CNAME解析</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%86%85%E5%AE%B9%E5%88%86%E5%8F%91CDN"><span class="toc-text">内容分发CDN</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#Vercel%E4%BC%98%E5%8C%96"><span class="toc-text">Vercel优化</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#JSCDN"><span class="toc-text">JSCDN</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Service-Worker"><span class="toc-text">Service Worker</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%9B%BD%E5%86%85%E5%A4%96%E5%88%86%E6%B5%81"><span class="toc-text">国内外分流</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%80%BB%E7%BB%93"><span class="toc-text">总结</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%AF%8F%E6%97%A5%E4%B8%80%E5%9B%BE"><span class="toc-text">每日一图</span></a></li></ol></div></div><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/posts/7915ee6b/" title="数据库可视化WEB工具对比"><img src="" data-lazy-src="https://p.liiiu.cn/i/2025/05/25/6832cc105bc41.webp" onerror='this.onerror=null,this.src="/img/404.jpg"' alt="数据库可视化WEB工具对比"></a><div class="content"><a class="title" href="/posts/7915ee6b/" title="数据库可视化WEB工具对比">数据库可视化WEB工具对比</a><time datetime="2025-05-25T10:01:21.000Z" title="更新于 2025-05-25 18:01:21">2025-05-25</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/posts/40702a0d/" title="本地实现HEXO文章AI摘要"><img src="" data-lazy-src="https://p.liiiu.cn/i/2025/05/06/6819cd4532457.webp" onerror='this.onerror=null,this.src="/img/404.jpg"' alt="本地实现HEXO文章AI摘要"></a><div class="content"><a class="title" href="/posts/40702a0d/" title="本地实现HEXO文章AI摘要">本地实现HEXO文章AI摘要</a><time datetime="2025-05-06T16:01:21.000Z" title="更新于 2025-05-07 00:01:21">2025-05-07</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/posts/5f71a4b1/" title="耗子面板和DPanel简单体验"><img src="" data-lazy-src="https://p.liiiu.cn/i/2025/04/27/680dc7916ef34.webp" onerror='this.onerror=null,this.src="/img/404.jpg"' alt="耗子面板和DPanel简单体验"></a><div class="content"><a class="title" href="/posts/5f71a4b1/" title="耗子面板和DPanel简单体验">耗子面板和DPanel简单体验</a><time datetime="2025-04-28T14:48:21.000Z" title="更新于 2025-04-28 22:48:21">2025-04-28</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/posts/caee2d9f/" title="美化你的RSS订阅地址"><img src="" data-lazy-src="https://p.liiiu.cn/i/2025/04/18/68024a618942b.webp" onerror='this.onerror=null,this.src="/img/404.jpg"' alt="美化你的RSS订阅地址"></a><div class="content"><a class="title" href="/posts/caee2d9f/" title="美化你的RSS订阅地址">美化你的RSS订阅地址</a><time datetime="2025-04-18T12:48:21.000Z" title="更新于 2025-04-18 20:48:21">2025-04-18</time></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap" style="background:0 0"><div id="footer_icons"><div><a class="icon_link" rel="noopener external nofollow" href="https://www.liushen.fun/" title="导航站点" target="_blank"><i class="fa-solid fa-compass"></i></a><a class="icon_link" rel="noopener external nofollow" href="https://admin.qidian.qq.com/static_proxy/b2b-qq/wpa-link/index.html#/person?uin=3162475700" title="联系QQ" target="_blank"><i class="fa-brands fa-qq"></i></a><a class="icon_link" rel="noopener external nofollow" href="https://github.com/willow-god" title="我的github主页" target="_blank"><i class="fa-brands fa-github"></i></a><a class="icon_link" rel="noopener external nofollow" href="mailto:01@liushen.fun" title="发送邮件至博主邮箱" target="_blank"><i class="fa-solid fa-envelope"></i></a></div><div class="footer_logo_container" onclick="btf.scrollToDest(0,500)" title="返回顶部"><img class="footer_logo" src="" data-lazy-src="/img/footer.gif"></div><div><a class="icon_link" rel="noopener external nofollow" href="https://wakatime.com/@LiuShen" title="Wikitime" target="_blank"><i class="fa-solid fa-clock"></i></a><a class="icon_link" rel="noopener external nofollow" href="https://gitlab.com/" title="gitlab" target="_blank"><i class="fa-brands fa-gitlab"></i></a><a class="icon_link" href="/shuoshuo/" title="日常说说" data-pjax-state="data-pjax-state"><i class="fa-solid fa-file-pen"></i></a><a class="icon_link" href="/comment/" title="留言板" data-pjax-state="data-pjax-state"><i class="fa-solid fa-comment"></i></a></div></div><div id="footer_content"><div class="footer-group"><h3 class="footer-title">关于本站</h3><div class="footer-links"><a class="footer-item" target="_blank" href="https://www.liushen.fun/">导航站点</a><a class="footer-item" href="/shuoshuo/">日常说说</a><a class="footer-item" target="_blank" href="https://um.liushen.fun/share/bIEnQp0xnMxD8c9V/blog.liushen.fun">访客信息</a><a class="footer-item" target="_blank" href="https://mm.liushen.fun/">提笔摘星</a><a class="footer-item" target="_blank" href="https://status.liushen.fun/">在线状态</a><a class="footer-item" href="/subscribe/">订阅本站</a></div></div><div class="footer-group"><h3 class="footer-title">加入组织</h3><div class="footer-links"><a class="footer-item" target="_blank" href="https://www.boyouquan.com/home">博友圈</a><a class="footer-item" target="_blank" href="https://github.com/timqian/chinese-independent-blogs">中博列表</a><a class="footer-item" target="_blank" href="https://blogwe.com/">博客我们</a><a class="footer-item" target="_blank" href="https://storeweb.cn/">个性商店</a><a class="footer-item" target="_blank" href="https://bf.zzxworld.com/">发现博客</a><a class="footer-item" target="_blank" href="https://ourblo.gs/">OurBlogs</a></div></div><div class="footer-group"><h3 class="footer-title">文章整理</h3><div class="footer-links"><a class="footer-item" href="/categories/website/">博客管理</a><a class="footer-item" href="/categories/learning/">学习资料</a><a class="footer-item" href="/categories/daily-share/">日常分享</a><a class="footer-item" href="/archives/">时光卷轴</a><a class="footer-item" href="/charts/">文章通览</a><a class="footer-item" href="/categories/">查看全部</a></div></div><div class="footer-group"><h3 class="footer-title">文章标签</h3><div class="footer-links"><a class="footer-item" href="/tags/JavaScript/">JS知识</a><a class="footer-item" href="/tags/Hexo/">本站框架</a><a class="footer-item" href="/tags/机器学习/">机器学习</a><a class="footer-item" href="/tags/日记/">个人日记</a><a class="footer-item" href="/tags/CSS/">CSS知识</a><a class="footer-item" href="/tags/">查看全部</a></div></div><div class="footer-group"><h3 class="footer-title">自建工具</h3><div class="footer-links"><a class="footer-item" target="_blank" rel="noopener" href="https://chat.liushen.fun/">清羽AI</a><a class="footer-item" target="_blank" rel="noopener" href="https://hot.liushen.fun/">今日热榜</a><a class="footer-item" target="_blank" rel="noopener" href="https://cover.qyliu.top/">封面设计</a><a class="footer-item" target="_blank" rel="noopener" href="https://icon.qyliu.top/">万变图标</a><a class="footer-item" target="_blank" rel="noopener" href="https://tmail.qyliu.top/">临时邮箱</a><a class="footer-item" target="_blank" rel="noopener" href="https://share.liushen.fun/">内容中转</a></div></div><div class="footer-group" id="friend-links-in-footer"><h3 class="footer-title">友链<button title="换一批" href="javascript:;" onclick="liushen.randomLink()"><i class="fa-solid fa-rotate-right"></i></button></h3><div class="footer-links"><a class="footer-item" target="_blank" href="https://blog.liushen.fun">测试1</a><a class="footer-item" target="_blank" href="https://blog.liushen.fun">测试2</a><a class="footer-item" target="_blank" href="https://blog.liushen.fun">测试3</a><a class="footer-item" target="_blank" href="https://blog.liushen.fun">测试4</a><a class="footer-item" target="_blank" href="https://blog.liushen.fun">测试5</a><a class="footer-item" href="/link/" data-pjax-state="data-pjax-state">查看更多</a></div></div></div><div id="footer-bottom"><div class="footer-bottom-content"><div class="footer-bottom-left"><span class="copyright">©2021 - 2025 By <a target="_blank" rel="noopener" href="https://blog.liushen.fun/about/" title="点击访问&quot;LiuShen&quot;的主页" style="margin-left:5px">LiuShen</a></span><div><a class="footer-bottom-link" target="_blank" href="https://beian.miit.gov.cn/" rel="noopener external nofollow" title="工信部备案号">陕ICP备2024028531号-2</a><a class="footer-bottom-link" target="_blank" href="https://beian.mps.gov.cn/#/query/webSearch?code=61011602000637" rel="noopener external nofollow" title="公安备案号">陕公网安备61011602000637号</a></div></div><div class="footer-bottom-right"><div id="runtime" title="本站运行时间">本站已苟活：0 天 0 时 0 分 0 秒</div><div><a class="footer-bottom-link" target="_blank" href="https://www.dogecloud.com/?iuid=9173" rel="noopener external nofollow" title="本站通过多吉云CDN提供站点加速">多吉云CDN</a><a class="footer-bottom-link" target="_blank" href="https://hexo.io/zh-cn/" rel="noopener external nofollow" title="本站使用Hexo架构搭建而成">Hexo静态框架</a><a class="footer-bottom-link" target="_blank" href="https://butterfly.js.org/" rel="noopener external nofollow" title="本站主题由Butterfly主题魔改而成">LiuShen主题</a></div></div></div></div></div><script>window.liushen||(window.liushen={saveData:(e,n)=>{localStorage.setItem(e,JSON.stringify({time:Date.now(),data:n}))},loadData:(e,n)=>{let t=JSON.parse(localStorage.getItem(e));if(t){let e=Date.now()-t.time;if(e>=0&&e<6e4*n)return t.data}return null},runtime:()=>{const e=e=>e>9?e:"0"+e,n=new Date("2021/12/12 01:27:36").getTime(),t=Date.now();let i=Math.round((t-n)/1e3),o="本站已苟活：";i>=86400&&(o+=`${e(Math.floor(i/86400))} 天 `,i%=86400),i>=3600&&(o+=`${e(Math.floor(i/3600))} 时 `,i%=3600),i>=60&&(o+=`${e(Math.floor(i/60))} 分 `,i%=60),o+=`${e(i)} 秒`;const l=document.getElementById("runtime");l&&(l.innerHTML=o),setTimeout(window.liushen.runtime,1e3)},randomLink:()=>{let e=window.liushen.loadData("links",30);if(e){let n=document.querySelectorAll("#friend-links-in-footer .footer-item");if(!n.length)return;for(let t=0;t<n.length;t++){let i=Math.floor(Math.random()*e.length);n[t].innerText=e[i].name,n[t].href=e[i].link,e.splice(i,1)}}else fetch("/flink_count.json").then((e=>e.json())).then((e=>{window.liushen.saveData("links",e.link_list),window.liushen.randomLink()}))}}),window.liushen.randomLink(),document.addEventListener("DOMContentLoaded",window.liushen.randomLink),window.liushen.runtime()</script></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="translateLink" type="button" title="简繁转换" style="width:35px">繁</button><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i><span class="rightside-text">阅读模式</span></button><button id="darkmode" type="button" title="日间和夜间模式切换"><i class="fa-regular fa-star-half-stroke"></i><span class="rightside-text">亮暗切换</span></button><button id="cat" onclick="toggleLive2dVisibility()" title="小猫显隐"><i class="fa-solid fa-cat"></i><span class="rightside-text">小猫显隐</span></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fa-solid fa-arrows-left-right-to-line"></i><span class="rightside-text">侧栏显隐</span></button></div><div id="rightside-config-show"><button id="rightside-config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i><span class="rightside-text">更多设置</span></button><button class="close" id="mobile-toc-button" type="button" title="目录"><i class="fas fa-list-ul"></i><span class="rightside-text">显示目录</span></button><button id="fullscreen" onclick="toggleFullScreen()" title="全屏切换"><i class="fa-solid fa-expand"></i><span class="rightside-text">全屏切换</span></button><a id="to_comment" href="#post-comment" title="前往评论"><i class="fas fa-comments"></i><span class="rightside-text">快速评论</span></a><button id="go-up" type="button" title="回到顶部"><span class="scroll-percent"></span><i class="fas fa-arrow-up"></i><span class="rightside-text">回到顶部</span></button></div></div><div id="rightMenu"><div class="rightMenu-group rightMenu-small"><div class="rightMenu-item" id="menu-backward"><i class="fa-solid fa-arrow-left"></i></div><div class="rightMenu-item" id="menu-forward"><i class="fa-solid fa-arrow-right"></i></div><div class="rightMenu-item" id="menu-refresh"><i class="fa-solid fa-arrow-rotate-right"></i></div><div class="rightMenu-item" id="menu-home"><i class="fa-solid fa-house"></i></div></div><div class="rightMenu-group rightMenu-line hide" id="menu-text"><a class="rightMenu-item" id="copy" href="javascript:rm.copySelect();"><i class="fa-solid fa-copy"></i><span>复制选中文字</span></a><a class="rightMenu-item" id="reply" href="javascript:rm.replySelect();"><i class="fa-regular fa-comment"></i><span>评论选中段落</span></a></div><div class="rightMenu-group rightMenu-line rightMenuOther"><a class="rightMenu-item menu-link" href="/archives/"><i class="fa-solid fa-archive"></i><span>文章时间线</span></a><a class="rightMenu-item menu-link" href="/categories/"><i class="fa-solid fa-folder-open"></i><span>文章分大类</span></a><a class="rightMenu-item menu-link" href="/tags/"><i class="fa-solid fa-tags"></i><span>文章小标签</span></a></div><div class="rightMenu-group rightMenu-line rightMenuNormal"><a class="rightMenu-item menu-link" id="menu-radompage" href="/comment/"><i class="fa-solid fa-shoe-prints"></i><span>随心留言板</span></a><div class="rightMenu-item" id="menu-translate"><i class="fa-solid fa-earth-asia"></i><span>繁简模式切换</span></div><div class="rightMenu-item" id="menu-live2dvisibility"><i class="fa-solid fa-cat"></i><span>小猫显示隐藏</span></div><div class="rightMenu-item" id="menu-print"><i class="fa-solid fa-print fa-fw"></i><span>打印整个页面</span></div><a class="rightMenu-item menu-link" id="statement" href="/statement/"><i class="fa-regular fa-copyright fa-fw"></i><span>网站声明</span></a></div></div><div id="rightmenu-mask"></div><div><script src="/js/others.js?v=5.0.0"></script><script src="/js/utils.js?v=5.0.0"></script><script src="/js/main.js?v=5.0.0"></script><script src="https://jsd.liiiu.cn/npm/echarts@5.5.1/dist/echarts.simple.min.js"></script><script src="/js/rightmenu.js?v=5.0.0"></script><script src="/js/jinrishici.js"></script><script src="/js/tw_cn.js?v=5.0.0"></script><script src="https://jsd.liiiu.cn/npm/@fancyapps/ui@5.0.36/dist/fancybox/fancybox.umd.min.js"></script><script src="https://jsd.liiiu.cn/npm/instant.page@5.2.0/instantpage.min.js" type="module"></script><script src="https://jsd.liiiu.cn/npm/vanilla-lazyload@19.1.3/dist/lazyload.iife.min.js"></script><div class="js-pjax"><script>(()=>{let t=null;const e=null,o="shuoshuo"===GLOBAL_CONFIG_SITE.pageType,a=()=>{t&&(t.destroy(),t=null)},n=e=>t&&t.setDarkMode("dark"===e),l=(l=document,i=location.pathname)=>{t=Artalk.init({el:l.querySelector("#artalk-wrap"),server:"https://atk.liushen.fun",site:"清羽飞扬",darkMode:"dark"===document.documentElement.getAttribute("data-theme"),...e,pageKey:i,imgUploader:function(t){let e="Bearer 28|q18njD3pLtHiFy9WidqQrREwqZzb8Zionr8WzilI",o="https://www.baiwulin.work/api/v1/upload",a=new Headers;a.set("Accept","application/json"),a.set("Authorization",e);let n=new FormData;n.append("file",t);const l=(t,e,o)=>fetch(t,{method:"POST",body:e,headers:o}).then((t=>t.json())).then((t=>t.data.links.url)).catch((t=>(console.error("Image upload failed:",t),null)));return l(o,n,a).then((t=>t||(console.warn("雾林图床接口失败，尝试替换为秋叶图床"),e="Bearer 11|lsReISlSS0dyhDzt35ovtfYefGbWSRW2vvntPXs7",o="https://imgse.koxiuqiu.cc/api/v1/upload",a.set("Authorization",e),l(o,n,a))))}}),"null"!==GLOBAL_CONFIG.lightbox&&(t.on("list-loaded",(()=>{t.ctx.get("list").getCommentNodes().forEach((t=>{const e=t.getRender().$content;btf.loadLightbox(e.querySelectorAll("img:not([atk-emoticon])"))}))})),o&&(window.shuoshuoComment.destroyArtalk=()=>{a(),l.children.length&&(l.innerHTML="",l.classList.add("no-comment"))}),btf.addGlobalFn("pjaxSendOnce",a,"destroyArtalk"),btf.addGlobalFn("themeChange",n,"artalk"))},i=async(t,e)=>{"object"==typeof Artalk||(await btf.getCSS("https://jsd.liiiu.cn/npm/artalk@2.9.1/dist/Artalk.min.css"),await btf.getScript("https://jsd.liiiu.cn/npm/artalk@2.9.1/dist/Artalk.min.js")),l(t,e)};o?window.shuoshuoComment={loadComment:i}:setTimeout(i,0)})()</script></div><script>window.newestComments={changeContent:e=>(""===e||(e=(e=(e=(e=(e=e.replace(/<img.*?src="(.*?)"?[^\>]+>/gi,"[图片]")).replace(/<a[^>]+?href=["']?([^"']+)["']?[^>]*>([^<]+)<\/a>/gi,"[链接]")).replace(/<pre><code>.*?<\/pre>/gi,"[代码]")).replace(/<code>.*?<\/code>/gi,"[代码]")).replace(/<[^>]+>/g,"")).length>150&&(e=e.substring(0,150)+"..."),e),generateHtml:(e,t)=>{let n="";if(e.length)for(let t=0;t<e.length;t++){if(n+='<div class="aside-list-item">',e[t].avatar){const a="data-lazy-src";n+=`<a href="${e[t].url}" class="thumbnail"><img ${a}="${e[t].avatar}" alt="${e[t].nick}"></a>`}n+=`<div class="content">\n        <a class="comment" href="${e[t].url}" title="${e[t].content}">${e[t].content}</a>\n        <div class="name"><span>${e[t].nick} / </span><time datetime="${e[t].date}">${btf.diffDate(e[t].date,!0)}</time></div>\n        </div></div>`}else n+="暂无评论";t.innerHTML=n,window.lazyLoadInstance&&window.lazyLoadInstance.update(),window.pjax&&window.pjax.refresh(t)},newestCommentInit:(e,t)=>{const n=document.querySelector("#card-newest-comments .aside-list");if(n){const a=btf.saveToLocal.get(e);a?newestComments.generateHtml(JSON.parse(a),n):t(n)}},run:(e,t)=>{newestComments.newestCommentInit(e,t),btf.addGlobalFn("pjaxComplete",(()=>newestComments.newestCommentInit(e,t)),e)}}</script><script>window.addEventListener("load",(()=>{const t="artalk-newest-comments",{changeContent:a,generateHtml:e,run:n}=window.newestComments,r=new URLSearchParams({site_name:"清羽飞扬",limit:"5"});n(t,(async n=>{try{const s=await fetch(`https://atk.liushen.fun/api/v2/stats/latest_comments?${r}`),o=await s.json(),{avatarCdn:c,avatarDefault:i}=await(async()=>{const t=t=>t.startsWith("d=")?t:`d=${t}`;try{const a=await fetch("https://atk.liushen.fun/api/v2/conf"),e=await a.json(),{mirror:n,params:r,default:s}=e.frontend_conf.gravatar;return{avatarCdn:n,avatarDefault:t(r||s)}}catch(a){return console.error(a),{avatarCdn:"",avatarDefault:t("")}}})(),l=o.data.map((t=>({avatar:c&&t.email_encrypted?`${c}${t.email_encrypted}?${i}`:"",content:a(t.content_marked),nick:t.nick,url:t.page_url,date:t.date})));btf.saveToLocal.set(t,JSON.stringify(l),10/1440),e(l,n)}catch(t){console.log(t),n.textContent="无法获取评论，请确认相关配置是否正确"}}))}))</script><script src="/config/memos/memos.js"></script><script id="canvas_nest" defer color="128,128,128" opacity="0.7" zindex="-1" count="99" mobile="false" src="https://jsd.liiiu.cn/npm/butterfly-extsrc@1.1.4/dist/canvas-nest.min.js"></script><link rel="stylesheet" href="https://jsd.liiiu.cn/npm/aplayer@1.10.1/dist/APlayer.min.css" media="print" onload='this.media="all"'><script src="https://jsd.liiiu.cn/npm/aplayer@1.10.1/dist/APlayer.min.js"></script><script src="https://jsd.liiiu.cn/npm/meting@2.0.1/dist/Meting.min.js"></script><script src="https://jsd.liiiu.cn/npm/pjax@0.2.8/pjax.min.js"></script><script>(()=>{window.pjax=new Pjax({elements:'a:not([target="_blank"])',selectors:["head > title","#config-diff","#body-wrap","#rightside-config-hide","#rightside-config-show",".js-pjax"],cacheBust:!1,analytics:!1,scrollRestoration:!1});const e=e=>{e&&Object.values(e).forEach((e=>e()))};document.addEventListener("pjax:send",(()=>{btf.removeGlobalFnEvent("pjaxSendOnce"),btf.removeGlobalFnEvent("themeChange");const t=document.body.classList;t.contains("read-mode")&&t.remove("read-mode"),e(window.globalFn.pjaxSend)})),document.addEventListener("pjax:complete",(()=>{btf.removeGlobalFnEvent("pjaxCompleteOnce"),document.querySelectorAll("script[data-pjax]").forEach((e=>{const t=document.createElement("script"),n=e.text||e.textContent||e.innerHTML||"";Array.from(e.attributes).forEach((e=>t.setAttribute(e.name,e.value))),t.appendChild(document.createTextNode(n)),e.parentNode.replaceChild(t,e)})),e(window.globalFn.pjaxComplete)})),document.addEventListener("pjax:error",(e=>{404===e.request.status&&pjax.loadUrl("/404")}))})()</script><script async data-pjax="" src="/config/busuanzi/busuanzi.js"></script><div id="algolia-search"><div class="search-dialog"><nav class="search-nav"><span class="search-dialog-title">搜索</span><button class="search-close-button"><i class="fas fa-times"></i></button></nav><div class="search-wrap"><div id="algolia-search-input"></div><hr><div id="algolia-search-results"><div id="algolia-hits"></div><div id="algolia-pagination"></div><div id="algolia-info"><div class="algolia-stats"></div><div class="algolia-poweredBy"></div></div></div></div></div><div id="search-mask"></div><script src="https://jsd.liiiu.cn/npm/algoliasearch@5.8.1/dist/lite/builds/browser.umd.min.js"></script><script src="https://jsd.liiiu.cn/npm/instantsearch.js@4.75.0/dist/instantsearch.production.min.js"></script><script src="/js/search/algolia.js?v=5.0.0"></script></div></div><div class="needEndHide" id="nav-music"><div id="nav-music-hoverTips" onclick="liuMusic.musicToggle()">音乐已暂停</div><meting-js id="13597135963" server="netease" type="playlist" mutex="true" preload="none" data-lrctype="0" order="random" volume="0.8" api="https://met.liiiu.cn/meting/api?server=:server&amp;type=:type&amp;id=:id&amp;r=:r"></meting-js></div><script data-pjax="">function butterfly_swiper_injector_config(){var a=document.getElementById("recent-posts");console.log("已挂载butterfly_swiper"),a.insertAdjacentHTML("afterbegin",'<div class="recent-post-item" style="height: auto;width: 100%"><div class="blog-slider swiper-container-fade swiper-container-horizontal" id="swiper_container"><div class="blog-slider__wrp swiper-wrapper" style="transition-duration: 0ms;"><div class="blog-slider__item swiper-slide" style="width: 750px; opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><a class="blog-slider__img" onclick="pjax.loadUrl(&quot;posts/4bb33804/&quot;);" href="javascript:void(0);" alt=""><img width="48" height="48" src= "" data-lazy-src="https://p.liiiu.cn/i/2025/04/08/67f49876a62e5.webp" alt="" onerror="this.src=/img/error-page.png; this.onerror = null;"/></a><div class="blog-slider__content"><span class="blog-slider__code">2025-04-08</span><a class="blog-slider__title" onclick="pjax.loadUrl(&quot;posts/4bb33804/&quot;);" href="javascript:void(0);" alt="">PaddleYOLO训练自己的数据集</a><div class="blog-slider__text">近期一直在研究毕业设计，在其中，我涉及到了PaddleYOLO的训练和部署，在网上的教程较少，经过不断努力，我也算是跑出来了，所以在这里分享出来做个记录，防止下次使用又忘记了怎么搞。</div><a class="blog-slider__button" onclick="pjax.loadUrl(&quot;posts/4bb33804/&quot;);" href="javascript:void(0);" alt="">详情       </a></div></div><div class="blog-slider__item swiper-slide" style="width: 750px; opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><a class="blog-slider__img" onclick="pjax.loadUrl(&quot;posts/5f71a4b1/&quot;);" href="javascript:void(0);" alt=""><img width="48" height="48" src= "" data-lazy-src="https://p.liiiu.cn/i/2025/04/27/680dc7916ef34.webp" alt="" onerror="this.src=/img/error-page.png; this.onerror = null;"/></a><div class="blog-slider__content"><span class="blog-slider__code">2025-04-28</span><a class="blog-slider__title" onclick="pjax.loadUrl(&quot;posts/5f71a4b1/&quot;);" href="javascript:void(0);" alt="">耗子面板和DPanel简单体验</a><div class="blog-slider__text">最近毕业设计临近尾声，代码也敲完了，目前就剩稍微的调优，就可以开始写论文啦！在闲暇时间，我也尝试部署了一些不一样的面板程序，总感觉1panel稍微有些复杂，很多功能并用不上，比如GPU，下面简单分享一下我的体验。</div><a class="blog-slider__button" onclick="pjax.loadUrl(&quot;posts/5f71a4b1/&quot;);" href="javascript:void(0);" alt="">详情       </a></div></div><div class="blog-slider__item swiper-slide" style="width: 750px; opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><a class="blog-slider__img" onclick="pjax.loadUrl(&quot;posts/40702a0d/&quot;);" href="javascript:void(0);" alt=""><img width="48" height="48" src= "" data-lazy-src="https://p.liiiu.cn/i/2025/05/06/6819cd4532457.webp" alt="" onerror="this.src=/img/error-page.png; this.onerror = null;"/></a><div class="blog-slider__content"><span class="blog-slider__code">2025-05-07</span><a class="blog-slider__title" onclick="pjax.loadUrl(&quot;posts/40702a0d/&quot;);" href="javascript:void(0);" alt="">本地实现HEXO文章AI摘要</a><div class="blog-slider__text">五一假期结束啦！这五天啥也没干，就在宿舍敲代码，都快无聊死了，恰逢找到了一些免费API，就自己实现一个AI摘要吧！利用API生成摘要文本放在文章头部，再通过hexo进行渲染就好啦！</div><a class="blog-slider__button" onclick="pjax.loadUrl(&quot;posts/40702a0d/&quot;);" href="javascript:void(0);" alt="">详情       </a></div></div><div class="blog-slider__item swiper-slide" style="width: 750px; opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><a class="blog-slider__img" onclick="pjax.loadUrl(&quot;posts/7915ee6b/&quot;);" href="javascript:void(0);" alt=""><img width="48" height="48" src= "" data-lazy-src="https://p.liiiu.cn/i/2025/05/25/6832cc105bc41.webp" alt="" onerror="this.src=/img/error-page.png; this.onerror = null;"/></a><div class="blog-slider__content"><span class="blog-slider__code">2025-05-25</span><a class="blog-slider__title" onclick="pjax.loadUrl(&quot;posts/7915ee6b/&quot;);" href="javascript:void(0);" alt="">数据库可视化WEB工具对比</a><div class="blog-slider__text">最近迁移服务器，并且搞了一个1P专业版玩玩，感觉效果很不错，想找一个管理数据库的服务，其中看了phpmyadmin等一些知名项目，但是都不太符合我的要求，最后经过筛选，找到了比较合适的，分享给大家！</div><a class="blog-slider__button" onclick="pjax.loadUrl(&quot;posts/7915ee6b/&quot;);" href="javascript:void(0);" alt="">详情       </a></div></div><div class="blog-slider__item swiper-slide" style="width: 750px; opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><a class="blog-slider__img" onclick="pjax.loadUrl(&quot;posts/caee2d9f/&quot;);" href="javascript:void(0);" alt=""><img width="48" height="48" src= "" data-lazy-src="https://p.liiiu.cn/i/2025/04/18/68024a618942b.webp" alt="" onerror="this.src=/img/error-page.png; this.onerror = null;"/></a><div class="blog-slider__content"><span class="blog-slider__code">2025-04-18</span><a class="blog-slider__title" onclick="pjax.loadUrl(&quot;posts/caee2d9f/&quot;);" href="javascript:void(0);" alt="">美化你的RSS订阅地址</a><div class="blog-slider__text">近期天天忙着毕业设计，冷落了站点文章的更新，最近也终于算是快要搞完了，于是开始捣鼓一些好玩的东西，在浏览阮一峰大佬的周刊时，了解到了RSS也能美化，折腾了一下，没想到还真实现了，在此分享一下。</div><a class="blog-slider__button" onclick="pjax.loadUrl(&quot;posts/caee2d9f/&quot;);" href="javascript:void(0);" alt="">详情       </a></div></div></div><div class="blog-slider__pagination swiper-pagination-clickable swiper-pagination-bullets"></div></div></div>')}for(var elist="null".split(","),cpage=location.pathname,epage="/",flag=0,i=0;i<elist.length;i++)cpage.includes(elist[i])&&flag++;("all"===epage&&0==flag||epage===cpage)&&butterfly_swiper_injector_config()</script><script defer src="https://jsd.liiiu.cn/npm/swiper@11.1.14/swiper-bundle.min.js"></script><script defer data-pjax="" src="/config/swiper/swiper_init.js"></script><script src="https://jsd.liiiu.cn/npm/live2d-widget@^3.1.3/lib/L2Dwidget.min.js"></script><script>L2Dwidget.init({pluginModelPath:"assets/",model:{scale:1,hHeadPos:.5,vHeadPos:.618,jsonPath:"/live2dw/assets/tororo.model.json"},display:{superSample:2,width:250,height:500,position:"left",hOffset:-20,vOffset:-90},mobile:{show:!1,scale:.5},react:{opacityDefault:.7,opacityOnHover:.2},log:!1,pluginJsPath:"lib/",pluginRootPath:"live2dw/",tagMode:!1})</script></body></html>